package com.moshang.blog.entity.vo;


import cn.afterturn.easypoi.excel.annotation.Excel;

import java.util.Date;
import java.util.List;

/**
 * @program: blog
 * @description: ${description}
 * @author: xieweiwei
 * @create: 2018-10-10 18:18
 **/
public class TableVO  {
    /**
     * 表的名称
     */
    @Excel(name = "表名", orderNum = "0",width = 25)
    private String name;
    /**
     * 字段列表
     */
    private List<TableField> fieldList;
    /**
     * 表备注
     */
    @Excel(name = "备注", orderNum = "2",width = 55)
    private String comment;

    /**
     * table类型 1.基本类型  2.树结构类型
     */
    private Integer tabletype;
    /**
     * 表有多少条数据
     */
    @Excel(name = "表中数据", orderNum = "3",width = 10)
    private Integer tableRows;

    /**
     * 表的创建时间
     */
    @Excel(name = "创建时间", orderNum = "4",exportFormat = "yyyy-MM-dd",width = 55)
    private Date createTime;

    /**
     * 表的更新时间
     */
    @Excel(name = "更新时间", orderNum = "4",exportFormat = "yyyy-MM-dd",width = 55)
    private Date updateTime;
    //类名(第一个字母大写)，如：sys_user => SysUser
    private String className;
    //类名(第一个字母小写)，如：sys_user => sysUser
    private String classname;
    //表的主键
    private TableField pk;

    //表的列名(不包含主键)
    private List<TableField> columns;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<TableField> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<TableField> fieldList) {
        this.fieldList = fieldList;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getTabletype() {
        return tabletype;
    }

    public void setTabletype(Integer tabletype) {
        this.tabletype = tabletype;
    }

    public Integer getTableRows() {
        return tableRows;
    }

    public void setTableRows(Integer tableRows) {
        this.tableRows = tableRows;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public TableField getPk() {
        return pk;
    }

    public void setPk(TableField pk) {
        this.pk = pk;
    }

    public List<TableField> getColumns() {
        return columns;
    }

    public void setColumns(List<TableField> columns) {
        this.columns = columns;
    }
}
